Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE users ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
username VARCHAR(255) NOT NULL UNIQUE, | |
password VARCHAR(255) NOT NULL | |
); | |
CREATE TABLE conversations ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
name VARCHAR(255) NOT NULL, | |
created_at DATETIME DEFAULT CURRENT_TIMESTAMP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class CustomProductField extends StatelessWidget { | |
final bool isTopField; // La idea es que tenga bordes redondeados arriba | |
final bool isBottomField; // La idea es que tenga bordes redondeados abajo | |
final String? label; | |
final String? hint; | |
final String? errorMessage; |
Run the following command on your terminal to install Homebrew. Homebrew is a package manager for Macs and is used to install useful development tools and software.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Run
brew install --cask anaconda
to install Anaconda
To convert an image to ASCII art, use jp2a
. I found that using the Docker image was the most portable way to do this, especially as it doesn't require you to build the binary manually.
docker run -t --rm -v "$(pwd)":/app talinx/jp2a file.ext --color-depth=4 --width=35
docker run
tells docker to run an application.
These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
try: | |
from osgeo import ogr, osr, gdal | |
except: | |
sys.exit('ERROR: cannot find GDAL/OGR modules') | |
# Set the driver (optional) | |
wfs_drv = ogr.GetDriverByName('WFS') |
- SDE 1 (4 rounds): Online Test, Machine Coding, DSA, Hiring Manager
- SDE 1 (4 rounds): Online Test, DSA, DSA, Hiring Manager
- Questions: https://leetcode.com/discuss/interview-question/1857338/
- Form input validations in vanilla js for a credit card payment page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import os | |
from lxml import etree | |
# remove old clients from deployment server | |
deployment_server = os.getenv('SPLUNK_DS') | |
splunk_username = os.getenv('SPLUNK_DS_USER') | |
splunk_password = os.getenv('SPLUNK_DS_PASS') | |
ds_auth=(splunk_username, splunk_password) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A script to auto add // @ts-ignore to lines with TypeScript compilation error | |
* Example usage: | |
* $ npx tsc > compilation-errors.log | |
* $ npx ts-node auto-ts-ignore.ts compilation-errors.log | |
*/ | |
import { readFile, writeFile } from 'fs/promises' | |
const errorLogFile = process.argv[2] |
NewerOlder